<template>
    <view class="page-order-list">
		<u-cell-group>
			<u-cell-item v-for="(item,index) in longList.list" :key="index" :title="item.id"></u-cell-item>
		</u-cell-group>
    </view>
</template>
<script setup lang="ts">
import {onShow, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app';
import { useLonglist } from '@/static/fn/longList';
const initObj = {
	listApi:'/admin/log/page',
}
let { searchForm, longList, getList} = useLonglist(initObj);
onPullDownRefresh(() => {
	getList('refresh');
	setTimeout( () => {
		uni.stopPullDownRefresh();
	}, 1000);
});
onReachBottom(() =>{
	getList();
});
onShow(() => {
	getList('refresh');
})
</script>